import { createApp } from "vue";
import vant from "vant";
import "vant/lib/index.css";
import App from "./App.vue";
import router from "./router/index";
import "./assets/style/index.scss";
import VueMarkdownEditor from "@kangc/v-md-editor";
import "@kangc/v-md-editor/lib/style/base-editor.css";
import vuepressTheme from "@kangc/v-md-editor/lib/theme/vuepress.js";
import "@kangc/v-md-editor/lib/theme/style/vuepress.css";
import VMdPreview from "@kangc/v-md-editor/lib/preview";

import Prism from "prismjs";

VueMarkdownEditor.use(vuepressTheme, {
  Prism,
});

VMdPreview.use(vuepressTheme, {
  Prism,
});

const app = createApp(App);
app.use(vant);
app.use(router);
app.use(VueMarkdownEditor);
app.use(VMdPreview);
app.mount("#app");
